package com.mhy.mvc.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class User {
    Integer id;
    String username;
    String password;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    Date birthday;
    Dog dog;
}
